public class Test1 {
    public static void main(String[] args) {
        char[] arr = {'a','b','c','d'};
        String str = new String(arr , 0 , 4);

        System.out.println(str);

    }
}
